package objects;

import constants.Currency;
import helpers.FinDate;
import constants.TransactionDirection;

public class Transaction {
	private long amount;
	private Currency currency;
	private FinDate date;
	private String message;
	private int itsBinNumber;
	private TransactionDirection direction;
	private int itsAccountNumber;
	
	public Transaction (long amount, Currency currency, FinDate date, String message, Bin bin, TransactionDirection direction, int itsAccountNumber) {
		this.amount = amount;
		this.currency = currency;
		this.date = date;
		this.message = message;
		this.direction = direction;
		this.itsAccountNumber = itsAccountNumber;
		this.itsBinNumber = bin.getBinNumber();
	}
	
	public void setBin (int newBinNumber) {
		this.itsBinNumber = newBinNumber;	
	}

	public int getAccountNumber() {
		return this.itsAccountNumber;
	}
	
	public int getBinNumber() {
		return this.itsBinNumber;
	}
	
	public long getAmount() {
		return this.amount;
	}
	
	public String getMessage() {
		return this.message;
	}
}
